import { Button, Result } from "antd";
import { history } from "umi";

export default function NotFound() {
  return (
    <Result
      status="404"
      title="404"
      subTitle="对不起, 您访问的页面不存在."
      extra={
        <Button type="primary" onClick={() => history.push("/")}>
          首页
        </Button>
      }
    />
  );
}
